<html>
  
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="style.css">
    <base target="_parent">
    <title data-trilium-title>To Do</title>
  </head>
  
  <body>
    <div class="content">
       <h1 data-trilium-h1>To Do</h1>

      <div class="ck-content">
        <p># Modify：20241126，Author：雨飞</p>
        <h2>基本使用</h2>
        <p>1.创建一个笔记文件，例如Anote，该笔记添加标签 <code>#initTodo</code>
        </p>
        <p>2.展开插件To Do→Scripts→jobs，打开init笔记，运行此脚本；</p>
        <figure class="image image-style-block-align-left image_resized"
        style="width:22.19%;">
          <img style="aspect-ratio:519/806;" src="2_To Do_image.png" width="519"
          height="806">
        </figure>
        <p>3.经过以上操作后，在新创建的笔记Anote下面会生成如下结构；</p>
        <figure class="image image-style-block-align-left image_resized"
        style="width:21.12%;">
          <img style="aspect-ratio:366/430;" src="1_To Do_image.png" width="366"
          height="430">
        </figure>
        <p>4.在Anote子目录中，选中In Progress或Backlog，右键选择Task模版创建笔记。</p>
        <figure class="image image-style-block-align-left image_resized"
        style="width:28.07%;">
          <img style="aspect-ratio:1062/1004;" src="To Do_image.png" width="1062"
          height="1004">
        </figure>
        <p>5.在新笔记中，填写计划完成时间dueDate。</p>
        <figure class="image image-style-block-align-left image_resized"
        style="width:53.71%;">
          <img style="aspect-ratio:1561/87;" src="3_To Do_image.png" width="1561"
          height="87">
        </figure>
        <p>6.笔记会根据日期completedDate信息自动移动到其它对应的目录中。</p>
        <h2>进阶使用</h2>
        <p>1.Timeline中显示Backlog，In Progress，Done中包含计划完成时间的dueDate子项，其中执行中的显示绿色</p>
        <p>2.Tags 支持以下两种参数：</p>
        <ul>
          <li><code>badgeBackground</code>
          </li>
          <li><code>badgeColor</code>
          </li>
        </ul>
        <p>3.展开插件To Do→Scripts→shared，打开addButtonToToolbar笔记，运行此脚本，可在左侧快捷工具栏添加一个创建新待办的按钮；</p>
        <p>4.Description的使用：根据issue页面说明，增加了addDescription</p>
        <p style="margin-left:40px;">正文部分添加“---”，生成横线，横线上面填写说明文字，点击“addDescription”，可将说明文字添加至标签内。</p>
        <h2>说明</h2>
        <p>1.该工具出自：<a href="https://github.com/zadam/trilium/discussions/2946">https://github.com/zadam/trilium/discussions/2946</a>
        </p>
        <p>2.该工具代码已经修改，主要功能均可正常使用。</p>
        <hr>
        <h2>插件原作者使用说明</h2>
        <hr>
        <p>Create a note anywhere, add the <code>#initTodo</code> label, reload the
          front-end or restart Trilium.</p>
        <ul>
          <li>The note with the label will be the root of your to-do list.</li>
          <li>You can create multiple lists at the same time</li>
          <li>Completed tasks will be archived automatically after 7 days.</li>
          <li>The time spent tracking works based on minutes. If you work on a task
            for less than that, it won't track anything.</li>
        </ul>
        <h2>To Do</h2><pre><code class="language-text-plain">  - To Do (root)
     - Archive
     - Backlog
     - Done
     - In Progress
     - Tags
</code></pre>
        <ul>
          <li>Archive - Completed tasks archived by year / month / day</li>
          <li>Backlog - Tasks on hold to be worked on</li>
          <li>Done - Nothing more to say, just good job!</li>
          <li>In Progress - Good session!</li>
          <li>Tags - It's tags, what else I could say? You could use this in every way
            you want. Separate tasks by priority (low and high)? As a separator for
            each app in a single to-do list? As status like bug, enhancement? The version
            you plan to release it? The sprint?
            <ul>
              <li>Tags can be customized, adding an attribute to the tag note.
                <ul>
                  <li><code>badgeBackground</code>
                  </li>
                  <li><code>badgeColor</code>
                  </li>
                </ul>
              </li>
            </ul>
          </li>
        </ul>
        <p>&nbsp;</p>
      </div>
    </div>
  </body>

</html>